using Microsoft.EntityFrameworkCore;

namespace StudentProject.Models;

public class StudentDbContext : DbContext
{
    public DbSet<Student> Students {get;set;} = null!;

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    {
        base.OnConfiguring(optionsBuilder);

        var onString = "server=.;database=Db0108;uid=sa;pwd=123456;TrustServerCertificate=True;";

        optionsBuilder.UseSqlServer(onString);
    }
}